<div class='right-cont-less right-cont' ng-controller='ShopCartList'>
	<div class='title'>交易列表<i class='fa fa-spin fa-spinner' ng-if='loading'></i></div>
	<div class='content'>
		<div class='box-list'>
			<table class='table table-list'>
				<tr>
					<td>交易单号 <span class='fa fa-sort'></span></td>
					<td>微信昵称<span class='fa fa-sort'></span></td>
					<td>物品类型<span class='fa fa-sort'></span></td>
					<td>物品个数<span class='fa fa-sort'></span></td>
					<td>物品详情<span class='fa fa-sort'></span></td>
					<td>交易时间<span class='fa fa-sort'></span></td>
					<td>交易金额<span class='fa fa-sort'></span></td>
					<td>交易状态<span class='fa fa-sort'></span></td>
					<td>操作<span class='fa fa-sort'></span></td>
				</tr>
				<tr ng-repeat='item in list'>
					<td>{{item.id || '未知'}}</td>
					<td>{{item.nickname || '未知'}}</td>
					<td>{{item.goods_type_text || '未知'}}</td>
					<td>{{item.goods_count || '未知'}}</td>
					<td>{{item.goods_name || '未知'}}</td>
					<td>{{item.create_date || '未知'}}</td>
					<td>{{item.amount || '未知'}}</td>
					<td>
						<span class='label label-success' ng-if='item.status == 1'>
							{{item.status_text || '未知'}}
						</span>
						<span class='label label-warning' ng-if='item.status == 0'>
							{{item.status_text}}
						</span>
					</td>
					<td>
						<button class='btn btn-xs btn-w-xs btn-primary' ng-if='item.status == 1'
							ng-click='detail(item.goods_infos)'>详情</button>
						<button class='btn btn-xs btn-w-xs btn-primary' ng-if='item.status == 0' disabled>详情</button>
					</td>
				</tr>
			</table>
		</div>
		<div class='box-page' ng-bind-html='pageHtml'></div>
	</div>

	<!-- 详情信息模态窗 -->
    <div class='modal fade goods-infos'>
        <div class='modal-dialog'>
            <div class='modal-content'> 
                <div class='modal-header'>
                    详情信息信息
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                    <table class='table-info'>
                    	<tr ng-repeat='goods in goodsInfos'>
                    		<td>物品名称:</td>
                            <td>{{goods.name || '未知'}}笔</td>
                            <td>物品价格:</td>
                            <td>{{goods.price || 0}}元</td>
                    	</tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>